package com.kylin;

import redis.clients.jedis.Jedis;

public class TestPing {
    public static void main(String[] args) {

        //1.new Jedis 对象
        Jedis jedis = new Jedis("127.0.0.1",6379);
        //2.jedis 搜友的命令就是我们之前学习的所用指令。
        System.out.println(jedis.ping());

    }
}
